package com.dldata.devtools30.repository.sysform;

import com.dldata.devtools30.entity.DevtFormFieldConfigEntity;
import com.dldata.devtools30.repository.BaseRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by zhw on 2020-07-03.
 */
@Repository
public interface DevtFormFieldConfigDao extends BaseRepository<DevtFormFieldConfigEntity,String>, JpaSpecificationExecutor<DevtFormFieldConfigEntity> {

    @Query("select t from  DevtFormFieldConfigEntity  t  where  t.templateid=?1 order by t.templateid desc")
    public List<DevtFormFieldConfigEntity> getFormDesignDataByTempid(String tempid);
}
